package linhnv.app;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.webkit.WebView;
import android.widget.Button;
import android.widget.ListView;
import android.widget.TextView;

public class HotTab extends Activity{

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		
		//Remove title bar
		this.requestWindowFeature(Window.FEATURE_NO_TITLE);
		//Remove notification bar
		//this.getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN);
		
		Log.d("linhnv","======================come here3");
		//setListAdapter(new ListItemsAdapter(this,25));
		setContentView(R.layout.list_view);
		
		int type = 25;//hot film category
		ListView listView = (ListView)findViewById(R.id.lstFilm);
		listView.setAdapter(new ListItemsAdapter(this,type));
		
		Button btnBack = (Button)findViewById(R.id.btnBack);
		btnBack.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				AudioStreaming.getHomeSelf().reset();
			}
		});
		btnBack.setVisibility(View.INVISIBLE);
		TextView textView = (TextView) findViewById(R.id.txtContent);
		textView.setText("Hot");
		
//		WebView wv = (WebView)findViewById(R.id.imageBanner);
//		wv.loadUrl("file:///android_asset/gif.html");
	}
	
}
